zfs-linux / zfs

Native ZFS for Linux
http://wiki.github.com/behlendorf/zfs/
Other
56 stars 2 forks source link

Solaris Test Framework Porting #7

Closed sandipd closed 13 years ago

sandipd commented 13 years ago

The basic aim behind this is to convert all shell scripts from solaris compatible format to linux.

sandipd commented 13 years ago

Updated by Amit G 7 months ago

Comment

test

2

Updated by Amit G 7 months ago

Comment

test2

3

Updated by Amit G 7 months ago

Comment

All these files are in SUNWstc-fs-zfs directory for setup, configuration & cleanup of ZFS suite.

default.cfg export AUTO_SNAP=$($SVCS -a | $GREP auto-snapshot | $GREP online | $AWK '{print $3}')

cleanup.ksh if -n $AUTO_SNAP ; then log_must $SVCADM enable $AUTO_SNAP

setup.ksh if -n $AUTO_SNAP ; then log_must $SVCADM disable $AUTO_SNAP

This is the only place(default.cfg) where we are using SVCS ...So, do we really need it??

4

Updated by Amit G 7 months ago

* Due date set to 03/26/2010

Comment

There are makefiles in STF which are made solaris specific so while building packages these makefiles need to be changed.

5

Updated by Amit G 7 months ago

Comment

Following are the changes in makefile of linux & solaris. They are almost same, the only thing differs is the flag's values.

84,85c84,85 < build_triplet = i686-pc-linux-gnu

< host_triplet = i686-pc-linux-gnu

build_triplet = i386-pc-solaris2.11 host_triplet = i386-pc-solaris2.11
261c261
< ACLOCAL = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/missing --run aclocal-1.11
--- ACLOCAL = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/missing --run aclocal-1.11
264c264
< AMTAR = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/missing --run tar
--- AMTAR = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/missing --run tar
267,271c267,271
< AUTOCONF = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/missing --run autoconf
< AUTOHEADER = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/missing --run autoheader
< AUTOM4TE = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/missing --run autom4te
< AUTOMAKE = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/missing --run automake-1.11
< AWK = mawk
--- AUTOCONF = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/missing --run autoconf AUTOHEADER = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/missing --run autoheader AUTOM4TE = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/missing --run autom4te AUTOMAKE = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/missing --run automake-1.11 AWK = gawk
275,279c275,279
< BITSIZEOF_PTRDIFF_T =
< BITSIZEOF_SIG_ATOMIC_T =
< BITSIZEOF_SIZE_T =
< BITSIZEOF_WCHAR_T =
< BITSIZEOF_WINT_T =
--- BITSIZEOF_PTRDIFF_T = 32 BITSIZEOF_SIG_ATOMIC_T = 32 BITSIZEOF_SIZE_T = 32 BITSIZEOF_WCHAR_T = 32 BITSIZEOF_WINT_T = 32
294,295c294,295
< ECHO_C =
< ECHO_N = n
-- ECHO_C = \c ECHO_N =
297c297
< EGREP = /bin/grep E
-- EGREP = /usr/gnu/bin/grep E
307c307
< FNMATCH_H =
-- FNMATCH_H = fnmatch.h
310c310
< GLIBC21 = yes
--- GLIBC21 = no
485c485
< GREP = /bin/grep
--- GREP = /usr/gnu/bin/grep
490c490
< HAVE_CANONICALIZE_FILE_NAME = 1
--- HAVE_CANONICALIZE_FILE_NAME = 0
493c493
< HAVE_DECL_ENVIRON = 1
--- HAVE_DECL_ENVIRON = 0
495,496c495,496
< HAVE_DECL_GETDELIM = 1
< HAVE_DECL_GETLINE = 1
--- HAVE_DECL_GETDELIM = 0 HAVE_DECL_GETLINE = 0
502c502
< HAVE_DECL_MEMRCHR = 1
--- HAVE_DECL_MEMRCHR = 0
508c508
< HAVE_DECL_STRNDUP = 1
--- HAVE_DECL_STRNDUP = 0
522c522
< HAVE_FCHMODAT = 1
--- HAVE_FCHMODAT = 0
558,559c558,559
< HAVE_MEMPCPY = 1
< HAVE_MKDIRAT = 1
--- HAVE_MEMPCPY = 0 HAVE_MKDIRAT = 0
575c575
< HAVE_RAWMEMCHR = 1
--- HAVE_RAWMEMCHR = 0
581c581
< HAVE_RPMATCH = 1
--- HAVE_RPMATCH = 0
584,586c584,586
< HAVE_SIGNED_SIG_ATOMIC_T =
< HAVE_SIGNED_WCHAR_T =
< HAVE_SIGNED_WINT_T =
--- HAVE_SIGNED_SIG_ATOMIC_T = 1 HAVE_SIGNED_WCHAR_T = 1 HAVE_SIGNED_WINT_T = 1
589c589
< HAVE_STPCPY = 1
--- HAVE_STPCPY = 0
593c593
< HAVE_STRCHRNUL = 1
--- HAVE_STRCHRNUL = 0
599c599
< HAVE_STRUCT_RANDOM_DATA = 1
--- HAVE_STRUCT_RANDOM_DATA = 0
605,606c605,606
< HAVE_SYS_BITYPES_H =
< HAVE_SYS_INTTYPES_H =
--- HAVE_SYS_BITYPES_H = 0 HAVE_SYS_INTTYPES_H = 1
629c629
< INSTALL = /usr/bin/install c
-- INSTALL = /usr/bin/ginstall c
644,646c644,646
< LIBS =
< LIB_CLOCK_GETTIME = -lrt
< LIB_SETSOCKOPT =
-- LIBS = -lnsl LIB_CLOCK_GETTIME = LIB_SETSOCKOPT = lsocket
649c649
< LOCALE_FR_UTF8 = none
-- LOCALE_FR_UTF8 = fr_FR.UTF-8
655,656c655,656
< MAKEINFO = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/missing --run makeinfo
< MKDIR_P = /bin/mkdir p
-- MAKEINFO = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/missing --run makeinfo MKDIR_P = /usr/gnu/bin/mkdir p
712c712
< PRIPTR_PREFIX = ""
-- PRIPTR_PREFIX = "l"
745c745
< REPLACE_GETLINE = 0
--- REPLACE_GETLINE = 1
756c756
< REPLACE_MBRTOWC = 0
--- REPLACE_MBRTOWC = 1
759c759
< REPLACE_MBSRTOWCS = 0
--- REPLACE_MBSRTOWCS = 1
767c767
< REPLACE_MKTIME = 0
--- REPLACE_MKTIME = 1
805c805
< REPLACE_UNSETENV = 0
--- REPLACE_UNSETENV = 1
814c814
< REPLACE_WCRTOMB = 0
--- REPLACE_WCRTOMB = 1
821c821
< SHELL = /bin/bash
--- SHELL = /bin/sh
823c823
< SIZE_T_SUFFIX =
--- SIZE_T_SUFFIX = u
827c827
< STDINT_H =
--- STDINT_H = stdint.h
839,840c839,840
< WCHAR_T_SUFFIX =
< WINT_T_SUFFIX =
--- WCHAR_T_SUFFIX = l WINT_T_SUFFIX = l
846,849c846,849
< abs_builddir = /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23
< abs_srcdir = /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23
< abs_top_builddir = /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23
< abs_top_srcdir = /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23
--- abs_builddir = /export/home/amit/Desktop/tar-1.23_Solaris abs_srcdir = /export/home/amit/Desktop/tar-1.23_Solaris abs_top_builddir = /export/home/amit/Desktop/tar-1.23_Solaris abs_top_srcdir = /export/home/amit/Desktop/tar-1.23_Solaris
857c857
< build = i686-pc-linux-gnu
--- build = i386-pc-solaris2.11
859,860c859,860
< build_cpu = i686
< build_os = linux-gnu
--- build_cpu = i386 build_os = solaris2.11
868,869c868,869
< gl_LIBOBJS = argmatch.o asnprintf.o backupfile.o basename.o basename-lgpl.o canonicalize.o chdir-long.o close-stream.o closeout.o dirname.o dirname-lgpl.o dup-safer.o exclude.o fcntl.o fd-safer.o getcwd.o getopt.o getopt1.o gettime.o hash.o human.o imaxtostr.o modechange.o offtostr.o openat-proc.o opendir-safer.o pipe-safer.o printf-args.o printf-parse.o quote.o quotearg.o regex.o safe-read.o safe-write.o same.o save-cwd.o savedir.o stripslash.o tempname.o uinttostr.o umaxtostr.o unlinkdir.o utimens.o vasnprintf.o xgetcwd.o xmalloc.o xstrtol.o xstrtol-error.o xstrtoul.o
< gl_LTLIBOBJS = argmatch.lo asnprintf.lo backupfile.lo basename.lo basename-lgpl.lo canonicalize.lo chdir-long.lo close-stream.lo closeout.lo dirname.lo dirname-lgpl.lo dup-safer.lo exclude.lo fcntl.lo fd-safer.lo getcwd.lo getopt.lo getopt1.lo gettime.lo hash.lo human.lo imaxtostr.lo modechange.lo offtostr.lo openat-proc.lo opendir-safer.lo pipe-safer.lo printf-args.lo printf-parse.lo quote.lo quotearg.lo regex.lo safe-read.lo safe-write.lo same.lo save-cwd.lo savedir.lo stripslash.lo tempname.lo uinttostr.lo umaxtostr.lo unlinkdir.lo utimens.lo vasnprintf.lo xgetcwd.lo xmalloc.lo xstrtol.lo xstrtol-error.lo xstrtoul.lo
--- gl_LIBOBJS = argmatch.o asnprintf.o backupfile.o basename.o basename-lgpl.o canonicalize.o chdir-long.o close-stream.o closeout.o dirname.o dirname-lgpl.o dup-safer.o error.o exclude.o fchmodat.o fcntl.o fd-safer.o fnmatch.o getcwd.o getdelim.o getline.o getopt.o getopt1.o gettime.o hash.o human.o imaxtostr.o mbrtowc.o mbsrtowcs.o mbsrtowcs-state.o mempcpy.o memrchr.o mkdirat.o mktime.o modechange.o obstack.o offtostr.o openat-proc.o opendir-safer.o pipe-safer.o printf-args.o printf-parse.o quote.o quotearg.o rawmemchr.o regex.o rpmatch.o safe-read.o safe-write.o same.o save-cwd.o savedir.o stpcpy.o strchrnul.o stripslash.o strndup.o tempname.o uinttostr.o umaxtostr.o unlinkdir.o unsetenv.o utimens.o vasnprintf.o wcrtomb.o xgetcwd.o xmalloc.o xstrtol.o xstrtol-error.o xstrtoul.o gl_LTLIBOBJS = argmatch.lo asnprintf.lo backupfile.lo basename.lo basename-lgpl.lo canonicalize.lo chdir-long.lo close-stream.lo closeout.lo dirname.lo dirname-lgpl.lo dup-safer.lo error.lo exclude.lo fchmodat.lo fcntl.lo fd-safer.lo fnmatch.lo getcwd.lo getdelim.lo getline.lo getopt.lo getopt1.lo gettime.lo hash.lo human.lo imaxtostr.lo mbrtowc.lo mbsrtowcs.lo mbsrtowcs-state.lo mempcpy.lo memrchr.lo mkdirat.lo mktime.lo modechange.lo obstack.lo offtostr.lo openat-proc.lo opendir-safer.lo pipe-safer.lo printf-args.lo printf-parse.lo quote.lo quotearg.lo rawmemchr.lo regex.lo rpmatch.lo safe-read.lo safe-write.lo same.lo save-cwd.lo savedir.lo stpcpy.lo strchrnul.lo stripslash.lo strndup.lo tempname.lo uinttostr.lo umaxtostr.lo unlinkdir.lo unsetenv.lo utimens.lo vasnprintf.lo wcrtomb.lo xgetcwd.lo xmalloc.lo xstrtol.lo xstrtol-error.lo xstrtoul.lo
872c872
< host = i686-pc-linux-gnu
--- host = i386-pc-solaris2.11
874,875c874,875
< host_cpu = i686
< host_os = linux-gnu
--- host_cpu = i386 host_os = solaris2.11
880c880
< install_sh = ${SHELL} /home/kqinfo/Desktop/zfs_port/MakeExample/tar-1.23/build-aux/install-sh
--- install_sh = ${SHELL} /export/home/amit/Desktop/tar-1.23_Solaris/build-aux/install-sh
886c886
< mkdir_p = /bin/mkdir p
-- mkdir_p = /usr/gnu/bin/mkdir -p

6

Updated by Anand Mitra 2 months ago

* Assigned to changed from Amit G to rohan puri
* Target version set to beta
mitra commented 13 years ago

done