From owner-freebsd-testing@freebsd.org Tue Oct 25 10:38:49 2016 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C006BED725 for ; Tue, 25 Oct 2016 10:38:49 +0000 (UTC) (envelope-from gc.prasan@gmail.com) Received: from mail-ua0-x232.google.com (mail-ua0-x232.google.com [IPv6:2607:f8b0:400c:c08::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 275E0AB5 for ; Tue, 25 Oct 2016 10:38:49 +0000 (UTC) (envelope-from gc.prasan@gmail.com) Received: by mail-ua0-x232.google.com with SMTP id m26so56002513uaa.1 for ; Tue, 25 Oct 2016 03:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=JBHYgqKEMmsyimw0S/gJhHoaOXMkz3c599dooBIVXs0=; b=O33tlqKpB4txKFNVJVxYf7LmyCkeEoHIiCnFI3oXmQLGM3Fohxt+3FYcS3iGLJXkvT XT8zz8/B08O//S9zs0Gjt0Zlf5hzoslNVK0cThIYmmdDyCXcKLHIFVwHHuXFhuSL8LCS z83/z0OaJqJDci0eHG9+J4wV5ZyX6eOftfi0uta1CYqXjnaW9jPVg3O1EMDXeWMDTHBU JenjnYwsc1JP6b+SmxyfOwbAGYM4WVg6CTGN12u/KPP52MXUdnGGfBzRgNQz0j05Da9c iD8vXOGMnR3xTNMAO933+ntcK3hLbaw63CnGORUiy1PJDpUyFUYxJgtgnO609UxWWHVx UGDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JBHYgqKEMmsyimw0S/gJhHoaOXMkz3c599dooBIVXs0=; b=bqUXmWUfKtrgh3Ekd9pq15VFaUM3qoR3Y5sB1sniSWgKR6mZb3giCtlJ/U6uraotvg hq5leSYcyHDCBKU+jrOS+PjlrrdMXcbhpdXD0XTYhP/LK3Y0FX6sjp+D9qRd8hdpXzBn jrM4zHxSyebRWdM/AU+gPnuhcHnyuU0CThct5D8nNpBJgnRrHsOYzh3f3J5nDA8GF7/e wVRLNl+XfF/Mynqs7JdKcSA8LR2Ng/Cxl2ikxSTNzrJYPb/0gOC0t9fI1S52kYJDktI0 4sEbQhWkW90Yg9l7b0CmboYfenFcu5cyr8d7PjL+rzDdBdBXaudWhLamlqruM+fGfmt9 fl5Q== X-Gm-Message-State: ABUngveRcxST2P32lA/8ZNdcUqgHWpJL9kD67lZsgcmhwzX8VjfND4xLwYhAKKOKOsMV02TWUdfhAA1Gti3EeA== X-Received: by 10.176.82.181 with SMTP id v50mr11123184uav.31.1477391927240; Tue, 25 Oct 2016 03:38:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.90.7 with HTTP; Tue, 25 Oct 2016 03:38:06 -0700 (PDT) From: Prasan Date: Tue, 25 Oct 2016 16:08:06 +0530 Message-ID: Subject: Issue while testing freebsd Suite for ZFS. To: freebsd-testing@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2016 10:38:49 -0000 We have a stripped version on freebsd for our NAS appliance. We are in the process of porting our NAS appliance to freeBSD 10.3 from current freeBSD 8.0. Since I was not able to compile on the NAS machine. Tried the below things to compile on the build server machine and copy the binaries to NAS appliance. Copied the source into home directory in porridge "/usr/home/pkumar/zfsd/" [pkumar@porridge /home/pkumar]$ svnlite co https://svn.freebsd.org/base/projects/zfsd zfsd/ [pkumar@porridge ~/zfsd/head/tests/sys/cddl/zfs/tests]$ sudo make all install ===> acl (all) ===> acl/cifs (all) ===> acl/trivial (all) ===> acl/nontrivial (all) ===> atime (all) ===> bootfs (all) ===> cache (all) ===> cachefile (all) ===> clean_mirror (all) ===> clean_mirror/assertion_001 (all) ===> clean_mirror/assertion_002 (all) ===> clean_mirror/assertion_003 (all) ===> clean_mirror/assertion_004 (all) ===> cli_root (all) ===> cli_root/zdb (all) ===> cli_root/zfs (all) ===> cli_root/zfs_clone (all) ===> cli_root/zfs_copies (all) .. .. ===> zvol/zvol_swap (all) ===> zvol/zvol_misc (all) ===> zvol/zvol_cli (all) ===> zvol_thrash (all) install -o root -g wheel -m 444 Kyuafile /usr/tests/sys/cddl/zfs/tests/Kyuafile ===> acl (install) install -o root -g wheel -m 444 Kyuafile /usr/tests/sys/cddl/zfs/tests/acl/Kyuafile install -o root -g wheel -m 444 /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/acl.cfg /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/acl_common.kshlib /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cleanup.ksh /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/setup.ksh /usr/tests/sys/cddl/zfs/tests/acl/ ===> acl/cifs (install) install -o root -g wheel -m 555 cifs_test /usr/tests/sys/cddl/zfs/tests/acl/cifs/cifs_test install -o root -g wheel -m 444 Kyuafile /usr/tests/sys/cddl/zfs/tests/acl/cifs/Kyuafile install -o root -g wheel -m 444 /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs.kshlib /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs_attr_001_pos.ksh /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs_attr_002_pos.ksh /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs_attr_003_pos.ksh /usr/tests/sys/cddl/zfs/tests/acl/cifs/ ===> acl/trivial (install) install -o root -g wheel -m 555 trivial_test /usr/tests/sys/cddl/zfs/tests/acl/trivial/trivial_test install -o root -g wheel -m 444 Kyuafile /usr/tests/sys/cddl/zfs/tests/acl/trivial/Kyuafile .. .. vol_cli.cfg /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol/zvol_cli/cleanup.ksh /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol/zvol_cli/zvol_cli_001_pos.ksh /usr/tests/sys/cddl/zfs/tests/zvol/zvol_cli/ ===> zvol_thrash (install) install -o root -g wheel -m 555 zvol_thrash_test /usr/tests/sys/cddl/zfs/tests/zvol_thrash/zvol_thrash_test install -o root -g wheel -m 444 Kyuafile /usr/tests/sys/cddl/zfs/tests/zvol_thrash/Kyuafile install -o root -g wheel -m 444 /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/setup.ksh /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/cleanup.ksh /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/zvol_thrash.cfg /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/zvol_thrash_001_pos.ksh /usr/tests/sys/cddl/zfs/tests/zvol_thrash/ [pkumar@porridge ~/zfsd/head/tests/sys/cddl/zfs/tests]$ ---------------------------------------------------------------------------------------------------------------- Could see that the binaries are getting installed into the directory "/usr/tests/sys/cddl/zfs/tests/". Which is the default execution path for the tests. So, on NAS machine too, created a path "/usr/tests/" and copied all the files and test binaries into it. --------------- [pkumar@porridge ~/zfsd/head/tests/sys/cddl/zfs/tests]$ sudo scp -r /usr/tests/* support@NAS-box:/usr/tests/ --------------- cc128# cd /usr/tests/ cc128# ls Kyuafile Makefile.depend etc sys Makefile README freebsd_test_suite cc128# cc128# cc128# kyua list kyua: E: Load of 'Kyuafile' failed: Failed to load Lua file 'Kyuafile': Kyuafile:49: Load of 'sys/Kyuafile' failed: Failed to load Lua file 'sys/Kyuafile': sys/Kyuafile:8: Load of 'sys/aio/Kyuafile' failed: File 'sys/aio/Kyuafile' not found. cc128# cc128# kyua test -k sys/cddl/zfs/tests/mv_files/Kyuafile mv_files_test:__test_cases_list__ -> [0.002s] Results file id is usr_tests_sys_cddl_zfs_tests_mv_files.20161025-100924-886426 Results saved to /usr/home/support/.kyua/store/results.usr_tests_sys_cddl_zfs_tests_mv_files.20161025-100924-886426.db 0/1 passed (1 failed) cc128# --------------------------------- The error is "broken: Cannot find test program" but, when we check the "Kyuafile" in path for "mv_files", it has the program "mv_files_test". The program file too exists in the path. cc128# cat sys/cddl/zfs/tests/mv_files/Kyuafile -- Automatically generated by bsd.test.mk. syntax(2) test_suite("FreeBSD") atf_test_program{name="mv_files_test", } cc128# cc128# cc128# cd sys/cddl/zfs/tests/mv_files/ cc128# pwd /usr/tests/sys/cddl/zfs/tests/mv_files cc128# cc128# ls Kyuafile mv_files.cfg mv_files_common.kshlib setup.ksh Makefile mv_files_001_pos.ksh mv_files_test cleanup.ksh mv_files_002_pos.ksh mv_files_test.sh cc128# -------------------------------------------------------- When tried to list the tests in the path (i.e., in the Kyuafile in the directory), it doesn't list the test cases, which are 'mv_files_001_pos' and 'mv_files_002_pos' for test program in this path. cc128# pwd /usr/tests/sys/cddl/zfs/tests/mv_files cc128# cc128# kyua list mv_files_test:__test_cases_list__ cc128# ----------------------------------------- This looks like an integration issue. Not sure about how to resolve it. When I move to a upper directory and try to compile, it fails with below errors, ------------------------------------------------ [pkumar@porridge ~/zfsd/head/tests/sys]$ pwd /usr/home/pkumar/zfsd/head/tests/sys [pkumar@porridge ~/zfsd/head/tests/sys]$ [pkumar@porridge ~/zfsd/head/tests/sys]$ sudo make all install ===> pjdfstest (all) ===> pjdfstest/pjdfstest (all) ===> pjdfstest/tests (all) ===> pjdfstest/tests/chflags (all) ===> pjdfstest/tests/chmod (all) ===> pjdfstest/tests/chown (all) ===> pjdfstest/tests/ftruncate (all) ===> pjdfstest/tests/granular (all) ===> pjdfstest/tests/link (all) ===> pjdfstest/tests/mkdir (all) ===> pjdfstest/tests/mkfifo (all) ===> pjdfstest/tests/mknod (all) ===> pjdfstest/tests/open (all) ===> pjdfstest/tests/rename (all) ===> pjdfstest/tests/rmdir (all) ===> pjdfstest/tests/symlink (all) ===> pjdfstest/tests/truncate (all) ===> pjdfstest/tests/unlink (all) ===> acl (all) ===> aio (all) (cd /usr/home/pkumar/zfsd/head/tests/sys/aio && DEPENDFILE=.depend.aio_test NO_SUBDIR=1 make -f /usr/home/pkumar/zfsd/head/tests/sys/aio/Makefile _RECURSING_PROGS=t PROG=aio_test ) cc -O2 -pipe -I/usr/home/pkumar/zfsd/head/tests -g -MD -MP -MF.depend.aio_test.aio_test.o -MTaio_test.o -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c -o aio_test.o /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:106:2: error: implicit declaration of function 'ATF_REQUIRE_MSG' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ATF_REQUIRE_MSG(signal(SIGALRM, aio_timeout_signal) != SIG_ERR, ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:210:2: error: implicit declaration of function 'atf_tc_skip' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ATF_REQUIRE_KERNEL_MODULE("aio"); ^ /usr/home/pkumar/zfsd/head/tests/freebsd_test_suite/macros.h:50:3: note: expanded from macro 'ATF_REQUIRE_KERNEL_MODULE' atf_tc_skip("module %s could not be resolved: %s", \ ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:224:5: error: implicit declaration of function 'atf_tc_fail' is invalid in C99 [-Werror,-Wimplicit-function-declaration] atf_tc_fail("aio_write timed out"); ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:224:5: note: did you mean 'atf_tc_skip'? /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:210:2: note: 'atf_tc_skip' declared here ATF_REQUIRE_KERNEL_MODULE("aio"); ^ /usr/home/pkumar/zfsd/head/tests/freebsd_test_suite/macros.h:50:3: note: expanded from macro 'ATF_REQUIRE_KERNEL_MODULE' atf_tc_skip("module %s could not be resolved: %s", \ ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:337:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] ATF_TC_WITHOUT_HEAD(aio_file_test); ^~~~~~~~~~~~~~~~~~~ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:337:21: error: a parameter list without types is only allowed in a function definition ATF_TC_WITHOUT_HEAD(aio_file_test); ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] ATF_TC_BODY(aio_file_test, tc) ^~~~~~~~~~~ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:1: error: no previous prototype for function 'ATF_TC_BODY' [-Werror,-Wmissing-prototypes] /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:346:2: error: implicit declaration of function 'atf_libc_error' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ATF_REQUIRE_UNSAFE_AIO(); ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/local.h:50:4: note: expanded from macro 'ATF_REQUIRE_UNSAFE_AIO' atf_libc_error(errno, \ ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:13: error: unused parameter 'aio_file_test' [-Werror,-Wunused-parameter] ATF_TC_BODY(aio_file_test, tc) ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:28: error: unused parameter 'tc' [-Werror,-Wunused-parameter] ATF_TC_BODY(aio_file_test, tc) ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:384:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] ATF_TC_WITHOUT_HEAD(aio_fifo_test); ^~~~~~~~~~~~~~~~~~~ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:384:21: error: a parameter list without types is only allowed in a function definition ATF_TC_WITHOUT_HEAD(aio_fifo_test); ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:385:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] ATF_TC_BODY(aio_fifo_test, tc) ^~~~~~~~~~~ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:385:1: error: redefinition of 'ATF_TC_BODY' /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:1: note: previous definition is here ATF_TC_BODY(aio_file_test, tc) ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:455:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] ATF_TC_WITHOUT_HEAD(aio_unix_socketpair_test); ^~~~~~~~~~~~~~~~~~~ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:455:21: error: a parameter list without types is only allowed in a function definition ATF_TC_WITHOUT_HEAD(aio_unix_socketpair_test); ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:456:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] ATF_TC_BODY(aio_unix_socketpair_test, tc) ^~~~~~~~~~~ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:478:2: error: implicit declaration of function 'ATF_REQUIRE' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ATF_REQUIRE(ru_after.ru_msgsnd == ru_before.ru_msgsnd + 1); ^ /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:505:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] ATF_TC_WITHOUT_HEAD(aio_pty_test); ^~~~~~~~~~~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. *** Error code 1 Stop. make[2]: stopped in /usr/home/pkumar/zfsd/head/tests/sys/aio *** Error code 1 Stop. make[1]: stopped in /usr/home/pkumar/zfsd/head/tests/sys/aio *** Error code 1 Stop. make: stopped in /usr/home/pkumar/zfsd/head/tests/sys [pkumar@porridge ~/zfsd/head/tests/sys]$ --------------------------------------------------------------------------------------------------- Can someone please help me out. I find very less documentation regarding the test suite. Thanks, --Prasanna From owner-freebsd-testing@freebsd.org Tue Oct 25 14:59:39 2016 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97BA4C214DC for ; Tue, 25 Oct 2016 14:59:39 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 519F9989 for ; Tue, 25 Oct 2016 14:59:39 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qk0-x236.google.com with SMTP id x11so53442885qka.1 for ; Tue, 25 Oct 2016 07:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=gooqhwu40zPhsvyF1ePAG9NmSipmrmOwbhB65O1xKw4=; b=JoymO4933C25DVSb7T9s8dl7W5W5PAqnbEHIEizu7lnt/To4nt8CVLOpMyZkKaHhxs WuRWt7bfQS+BX/YQwspF6AbNgrKAj6J6AZACN0giYGtxupGhxcYTM69fSoq/B7d34aUj d8ctCR5FrgTMmHuPd7tEe2FUqpI5pc2K5lslJErz0HdaQApPB0bLt/6tx/lV43n2xOBp igxu3GLLVHXQMyxIf8R9lFEHJ+QdogrqMMkRDz/QCxoMgWfZzqkuu8tAsb2GavbrHA+h CY2jPszzNJLR4nzVcL15Muk2jcWskgOV3iboobzMmsfqrVvPOs8L/8zb0ohKzu2c+3l6 pndw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=gooqhwu40zPhsvyF1ePAG9NmSipmrmOwbhB65O1xKw4=; b=O4CHFokKHVNg03WIT8XOEnFJrHJrtQkGAvw3fQPXtI7HKtG7NsFEqMipG9I9eYurZT /hh6MvsPA59QLxuAg8Q9jh+kDP22e1FZ1TIrPJFozrS6QddWUvEh6EZXI+nFSbxLdqaZ PWwfGLWci1JUQGbk9ukY4WEJX9N0D0gtnKJLIG2uYRMSjplUo8NAYCmzjoKYKAEHI1kC VURJUbl6oUzuJW2oNbehRiC9KwvcHB9y0KQFNe4hcyEVq8zDvIhfl/uKpdfsDbpetV5h ngct/Her1hErGeLizlDpnvTsC2bJa/RFSL75I1v23f8QkNguUCoPJHS83CvGxGmQLcJV xNlw== X-Gm-Message-State: ABUngvcI3MfuFQsomwmYDrIU7iX/kEL5H++vQtmxpX0vvTqAA7DxdY4cF27vU4RIGrAI7CV20P2yf64gQfrIoA== X-Received: by 10.55.89.197 with SMTP id n188mr18952157qkb.306.1477407578241; Tue, 25 Oct 2016 07:59:38 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.138.251 with HTTP; Tue, 25 Oct 2016 07:59:37 -0700 (PDT) In-Reply-To: References: From: Alan Somers Date: Tue, 25 Oct 2016 08:59:37 -0600 X-Google-Sender-Auth: hT73wGw8_kW7muT0lrrjLxW2PMg Message-ID: Subject: Re: Issue while testing freebsd Suite for ZFS. To: Prasan Cc: "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2016 14:59:39 -0000 On Tue, Oct 25, 2016 at 4:38 AM, Prasan wrote: > We have a stripped version on freebsd for our NAS appliance. We are in the > process of porting our NAS appliance to freeBSD 10.3 from current freeBSD > 8.0. Since I was not able to compile on the NAS machine. Tried the below > things to compile on the build server machine and copy the binaries to NAS > appliance. > > Copied the source into home directory in porridge "/usr/home/pkumar/zfsd/" > > [pkumar@porridge /home/pkumar]$ svnlite co > https://svn.freebsd.org/base/projects/zfsd zfsd/ In general, you can expect a lot of rough edges trying to pull stuff in from project branches. It is not for the faint of heart. If all you want is zfsd, then you may be better served by porting your appliance to FreeBSD 11.0, which has zfsd (but not the ZFS test suite). Also, note that the zfsd branch is branched from CURRENT, not stable/10. Some stuff may not work on stable/10 out of the box, for example Makefile variables. > > > [pkumar@porridge ~/zfsd/head/tests/sys/cddl/zfs/tests]$ sudo make all > install > ===> acl (all) > ===> acl/cifs (all) > ===> acl/trivial (all) > ===> acl/nontrivial (all) > ===> atime (all) > ===> bootfs (all) > ===> cache (all) > ===> cachefile (all) > ===> clean_mirror (all) > ===> clean_mirror/assertion_001 (all) > ===> clean_mirror/assertion_002 (all) > ===> clean_mirror/assertion_003 (all) > ===> clean_mirror/assertion_004 (all) > ===> cli_root (all) > ===> cli_root/zdb (all) > ===> cli_root/zfs (all) > ===> cli_root/zfs_clone (all) > ===> cli_root/zfs_copies (all) > .. > .. > ===> zvol/zvol_swap (all) > ===> zvol/zvol_misc (all) > ===> zvol/zvol_cli (all) > ===> zvol_thrash (all) > install -o root -g wheel -m 444 Kyuafile > /usr/tests/sys/cddl/zfs/tests/Kyuafile > ===> acl (install) > install -o root -g wheel -m 444 Kyuafile > /usr/tests/sys/cddl/zfs/tests/acl/Kyuafile > install -o root -g wheel -m 444 > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/acl.cfg > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/acl_common.kshlib > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cleanup.ksh > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/setup.ksh > /usr/tests/sys/cddl/zfs/tests/acl/ > ===> acl/cifs (install) > install -o root -g wheel -m 555 cifs_test > /usr/tests/sys/cddl/zfs/tests/acl/cifs/cifs_test > install -o root -g wheel -m 444 Kyuafile > /usr/tests/sys/cddl/zfs/tests/acl/cifs/Kyuafile > install -o root -g wheel -m 444 > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs.kshlib > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs_attr_001_pos.ksh > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs_attr_002_pos.ksh > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/acl/cifs/cifs_attr_003_pos.ksh > /usr/tests/sys/cddl/zfs/tests/acl/cifs/ > ===> acl/trivial (install) > install -o root -g wheel -m 555 trivial_test > /usr/tests/sys/cddl/zfs/tests/acl/trivial/trivial_test > install -o root -g wheel -m 444 Kyuafile > /usr/tests/sys/cddl/zfs/tests/acl/trivial/Kyuafile > .. > .. > vol_cli.cfg > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol/zvol_cli/cleanup.ksh > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol/zvol_cli/zvol_cli_001_pos.ksh > /usr/tests/sys/cddl/zfs/tests/zvol/zvol_cli/ > ===> zvol_thrash (install) > install -o root -g wheel -m 555 zvol_thrash_test > /usr/tests/sys/cddl/zfs/tests/zvol_thrash/zvol_thrash_test > install -o root -g wheel -m 444 Kyuafile > /usr/tests/sys/cddl/zfs/tests/zvol_thrash/Kyuafile > install -o root -g wheel -m 444 > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/setup.ksh > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/cleanup.ksh > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/zvol_thrash.cfg > /usr/home/pkumar/zfsd/head/tests/sys/cddl/zfs/tests/zvol_thrash/zvol_thrash_001_pos.ksh > /usr/tests/sys/cddl/zfs/tests/zvol_thrash/ > [pkumar@porridge ~/zfsd/head/tests/sys/cddl/zfs/tests]$ > ---------------------------------------------------------------------------------------------------------------- > > Could see that the binaries are getting installed into the directory > "/usr/tests/sys/cddl/zfs/tests/". Which is the default execution path for > the tests. > > So, on NAS machine too, created a path "/usr/tests/" and copied all the > files and test binaries into it. > --------------- > [pkumar@porridge ~/zfsd/head/tests/sys/cddl/zfs/tests]$ sudo scp -r > /usr/tests/* support@NAS-box:/usr/tests/ > --------------- > > cc128# cd /usr/tests/ > cc128# ls > Kyuafile Makefile.depend etc sys > Makefile README freebsd_test_suite > cc128# > cc128# > cc128# kyua list > kyua: E: Load of 'Kyuafile' failed: Failed to load Lua file 'Kyuafile': > Kyuafile:49: Load of 'sys/Kyuafile' failed: Failed to load Lua file > 'sys/Kyuafile': sys/Kyuafile:8: Load of 'sys/aio/Kyuafile' failed: File > 'sys/aio/Kyuafile' not found. This is a problem with your 10.3 install, not the zfsd branch. That file should exist in 10.3. > cc128# > cc128# kyua test -k sys/cddl/zfs/tests/mv_files/Kyuafile > mv_files_test:__test_cases_list__ -> [0.002s] You need to install atf-ksh93. In the zfsd project branch, cd to libexec/atf/atf-ksh93/ and do make; make install; > > Results file id is > usr_tests_sys_cddl_zfs_tests_mv_files.20161025-100924-886426 > Results saved to > /usr/home/support/.kyua/store/results.usr_tests_sys_cddl_zfs_tests_mv_files.20161025-100924-886426.db > > 0/1 passed (1 failed) > cc128# > --------------------------------- > > The error is "broken: Cannot find test program" but, when we check the > "Kyuafile" in path for "mv_files", it has the program "mv_files_test". The > program file too exists in the path. > > > cc128# cat sys/cddl/zfs/tests/mv_files/Kyuafile > -- Automatically generated by bsd.test.mk. > > syntax(2) > > test_suite("FreeBSD") > > atf_test_program{name="mv_files_test", } > cc128# > cc128# > cc128# cd sys/cddl/zfs/tests/mv_files/ > cc128# pwd > /usr/tests/sys/cddl/zfs/tests/mv_files > cc128# > cc128# ls > Kyuafile mv_files.cfg mv_files_common.kshlib > setup.ksh > Makefile mv_files_001_pos.ksh mv_files_test > cleanup.ksh mv_files_002_pos.ksh mv_files_test.sh > cc128# > > -------------------------------------------------------- > > When tried to list the tests in the path (i.e., in the Kyuafile in the > directory), it doesn't list the test cases, which are 'mv_files_001_pos' > and 'mv_files_002_pos' for test program in this path. > > cc128# pwd > /usr/tests/sys/cddl/zfs/tests/mv_files > cc128# > cc128# kyua list > mv_files_test:__test_cases_list__ > cc128# > > ----------------------------------------- > > This looks like an integration issue. Not sure about how to resolve it. > > When I move to a upper directory and try to compile, it fails with below > errors, > ------------------------------------------------ > [pkumar@porridge ~/zfsd/head/tests/sys]$ pwd > /usr/home/pkumar/zfsd/head/tests/sys > [pkumar@porridge ~/zfsd/head/tests/sys]$ > > [pkumar@porridge ~/zfsd/head/tests/sys]$ sudo make all install > ===> pjdfstest (all) > ===> pjdfstest/pjdfstest (all) > ===> pjdfstest/tests (all) > ===> pjdfstest/tests/chflags (all) > ===> pjdfstest/tests/chmod (all) > ===> pjdfstest/tests/chown (all) > ===> pjdfstest/tests/ftruncate (all) > ===> pjdfstest/tests/granular (all) > ===> pjdfstest/tests/link (all) > ===> pjdfstest/tests/mkdir (all) > ===> pjdfstest/tests/mkfifo (all) > ===> pjdfstest/tests/mknod (all) > ===> pjdfstest/tests/open (all) > ===> pjdfstest/tests/rename (all) > ===> pjdfstest/tests/rmdir (all) > ===> pjdfstest/tests/symlink (all) > ===> pjdfstest/tests/truncate (all) > ===> pjdfstest/tests/unlink (all) > ===> acl (all) > ===> aio (all) > (cd /usr/home/pkumar/zfsd/head/tests/sys/aio && > DEPENDFILE=.depend.aio_test NO_SUBDIR=1 make -f > /usr/home/pkumar/zfsd/head/tests/sys/aio/Makefile _RECURSING_PROGS=t > PROG=aio_test ) > cc -O2 -pipe -I/usr/home/pkumar/zfsd/head/tests -g -MD -MP > -MF.depend.aio_test.aio_test.o -MTaio_test.o -std=gnu99 -fstack-protector > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type > -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter > -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls > -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations > -Wthread-safety -Wno-empty-body -Wno-string-plus-int > -Wno-unused-const-variable -Qunused-arguments -c > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c -o aio_test.o > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:106:2: error: implicit > declaration of function 'ATF_REQUIRE_MSG' > is invalid in C99 [-Werror,-Wimplicit-function-declaration] > ATF_REQUIRE_MSG(signal(SIGALRM, aio_timeout_signal) != SIG_ERR, > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:210:2: error: implicit > declaration of function 'atf_tc_skip' is > invalid in C99 [-Werror,-Wimplicit-function-declaration] > ATF_REQUIRE_KERNEL_MODULE("aio"); > ^ > /usr/home/pkumar/zfsd/head/tests/freebsd_test_suite/macros.h:50:3: note: > expanded from macro > 'ATF_REQUIRE_KERNEL_MODULE' > atf_tc_skip("module %s could not be resolved: %s", \ > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:224:5: error: implicit > declaration of function 'atf_tc_fail' is > invalid in C99 [-Werror,-Wimplicit-function-declaration] > atf_tc_fail("aio_write timed out"); > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:224:5: note: did you > mean 'atf_tc_skip'? > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:210:2: note: > 'atf_tc_skip' declared here > ATF_REQUIRE_KERNEL_MODULE("aio"); > ^ > /usr/home/pkumar/zfsd/head/tests/freebsd_test_suite/macros.h:50:3: note: > expanded from macro > 'ATF_REQUIRE_KERNEL_MODULE' > atf_tc_skip("module %s could not be resolved: %s", \ > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:337:1: error: type > specifier missing, defaults to 'int' > [-Werror,-Wimplicit-int] > ATF_TC_WITHOUT_HEAD(aio_file_test); > ^~~~~~~~~~~~~~~~~~~ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:337:21: error: a > parameter list without types is only allowed in > a function definition > ATF_TC_WITHOUT_HEAD(aio_file_test); > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:1: error: type > specifier missing, defaults to 'int' > [-Werror,-Wimplicit-int] > ATF_TC_BODY(aio_file_test, tc) > ^~~~~~~~~~~ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:1: error: no > previous prototype for function 'ATF_TC_BODY' > [-Werror,-Wmissing-prototypes] > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:346:2: error: implicit > declaration of function 'atf_libc_error' > is invalid in C99 [-Werror,-Wimplicit-function-declaration] > ATF_REQUIRE_UNSAFE_AIO(); > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/local.h:50:4: note: expanded from > macro 'ATF_REQUIRE_UNSAFE_AIO' > atf_libc_error(errno, \ > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:13: error: unused > parameter 'aio_file_test' > [-Werror,-Wunused-parameter] > ATF_TC_BODY(aio_file_test, tc) > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:28: error: unused > parameter 'tc' [-Werror,-Wunused-parameter] > ATF_TC_BODY(aio_file_test, tc) > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:384:1: error: type > specifier missing, defaults to 'int' > [-Werror,-Wimplicit-int] > ATF_TC_WITHOUT_HEAD(aio_fifo_test); > ^~~~~~~~~~~~~~~~~~~ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:384:21: error: a > parameter list without types is only allowed in > a function definition > ATF_TC_WITHOUT_HEAD(aio_fifo_test); > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:385:1: error: type > specifier missing, defaults to 'int' > [-Werror,-Wimplicit-int] > ATF_TC_BODY(aio_fifo_test, tc) > ^~~~~~~~~~~ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:385:1: error: > redefinition of 'ATF_TC_BODY' > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:338:1: note: previous > definition is here > ATF_TC_BODY(aio_file_test, tc) > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:455:1: error: type > specifier missing, defaults to 'int' > [-Werror,-Wimplicit-int] > ATF_TC_WITHOUT_HEAD(aio_unix_socketpair_test); > ^~~~~~~~~~~~~~~~~~~ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:455:21: error: a > parameter list without types is only allowed in > a function definition > ATF_TC_WITHOUT_HEAD(aio_unix_socketpair_test); > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:456:1: error: type > specifier missing, defaults to 'int' > [-Werror,-Wimplicit-int] > ATF_TC_BODY(aio_unix_socketpair_test, tc) > ^~~~~~~~~~~ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:478:2: error: implicit > declaration of function 'ATF_REQUIRE' is > invalid in C99 [-Werror,-Wimplicit-function-declaration] > ATF_REQUIRE(ru_after.ru_msgsnd == ru_before.ru_msgsnd + 1); > ^ > /usr/home/pkumar/zfsd/head/tests/sys/aio/aio_test.c:505:1: error: type > specifier missing, defaults to 'int' > [-Werror,-Wimplicit-int] > ATF_TC_WITHOUT_HEAD(aio_pty_test); > ^~~~~~~~~~~~~~~~~~~ > fatal error: too many errors emitted, stopping now [-ferror-limit=] > 20 errors generated. > *** Error code 1 > > Stop. > make[2]: stopped in /usr/home/pkumar/zfsd/head/tests/sys/aio > *** Error code 1 > > Stop. > make[1]: stopped in /usr/home/pkumar/zfsd/head/tests/sys/aio > *** Error code 1 > > Stop. > make: stopped in /usr/home/pkumar/zfsd/head/tests/sys > [pkumar@porridge ~/zfsd/head/tests/sys]$ > --------------------------------------------------------------------------------------------------- You're trying to compile CURRENT code on a stable/10 machine. This is not guaranteed to work. But that directory _does_ exist in 10.3-RELEASE. Did you install the tests.txz release set when you installed that machine? > > Can someone please help me out. I find very less documentation regarding > the test suite. > > Thanks, > --Prasanna