Rebase.diff -r1.14 -r1.14.22.1 src/tests/rump/rumpkern/Makefile
(tls)
--- src/tests/rump/rumpkern/Makefile 2011/01/14 13:23:15 1.14
+++ src/tests/rump/rumpkern/Makefile 2014/08/10 06:57:32 1.14.22.1
@@ -1,31 +1,31 @@ | @@ -1,31 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.14 2011/01/14 13:23:15 pooka Exp $ | 1 | # $NetBSD: Makefile,v 1.14.22.1 2014/08/10 06:57:32 tls Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | TESTSDIR= ${TESTSBASE}/rump/rumpkern | 5 | TESTSDIR= ${TESTSBASE}/rump/rumpkern | |
6 | 6 | |||
7 | TESTS_C= t_copy | 7 | TESTS_C= t_copy | |
8 | TESTS_C+= t_kern | 8 | TESTS_C+= t_kern | |
9 | TESTS_C+= t_lwproc | 9 | TESTS_C+= t_lwproc | |
10 | TESTS_C+= t_modcmd | 10 | TESTS_C+= t_modcmd | |
11 | TESTS_C+= t_modlinkset | 11 | TESTS_C+= t_modlinkset | |
12 | TESTS_C+= t_signals | 12 | TESTS_C+= t_signals | |
13 | TESTS_C+= t_threads | 13 | TESTS_C+= t_threads | |
14 | TESTS_C+= t_tsleep | 14 | TESTS_C+= t_tsleep | |
15 | TESTS_C+= t_vm | 15 | TESTS_C+= t_vm | |
16 | 16 | |||
17 | TESTS_SH= t_sp | 17 | TESTS_SH= t_sp | |
18 | 18 | |||
19 | SUBDIR+= h_client h_server | 19 | SUBDIR+= h_client h_server | |
20 | 20 | |||
21 | ADD_TO_LD= -lrumpvfs -lrump -lrumpuser -lpthread | 21 | ADD_TO_LD= -lrumpvfs -lrump -lrumpuser -lrump -lpthread | |
22 | LDADD.t_modlinkset+= -lukfs -lrumpdev_disk -lrumpdev -lrumpfs_msdos | 22 | LDADD.t_modlinkset+= -lukfs -lrumpdev_disk -lrumpdev -lrumpfs_msdos | |
23 | LDADD.t_modlinkset+= -lrumpfs_cd9660 ${ADD_TO_LD} | 23 | LDADD.t_modlinkset+= -lrumpfs_cd9660 ${ADD_TO_LD} | |
24 | LDADD+= ${ADD_TO_LD} | 24 | LDADD+= ${ADD_TO_LD} | |
25 | 25 | |||
26 | KERNSPACE != cd ${.CURDIR}/../kernspace && ${PRINTOBJDIR} | 26 | KERNSPACE != cd ${.CURDIR}/../kernspace && ${PRINTOBJDIR} | |
27 | LDADD+= -L${KERNSPACE} -lkernspace | 27 | LDADD+= -L${KERNSPACE} -lkernspace | |
28 | 28 | |||
29 | WARNS= 4 | 29 | WARNS= 4 | |
30 | 30 | |||
31 | .include <bsd.test.mk> | 31 | .include <bsd.test.mk> |
--- src/tests/rump/rumpkern/h_server/Makefile 2011/01/14 13:23:15 1.3
+++ src/tests/rump/rumpkern/h_server/Makefile 2014/08/10 06:57:32 1.3.22.1
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2011/01/14 13:23:15 pooka Exp $ | 1 | # $NetBSD: Makefile,v 1.3.22.1 2014/08/10 06:57:32 tls Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | .include <bsd.own.mk> | 4 | .include <bsd.own.mk> | |
5 | 5 | |||
6 | TESTSDIR= ${TESTSBASE}/rump/rumpkern/h_server | 6 | TESTSDIR= ${TESTSBASE}/rump/rumpkern/h_server | |
7 | 7 | |||
8 | TESTS_C= h_simpleserver | 8 | TESTS_C= h_simpleserver | |
9 | 9 | |||
10 | ATFFILE= no | 10 | ATFFILE= no | |
11 | 11 | |||
12 | LDADD+= -lrump -lrumpuser -lpthread | 12 | LDADD+= -lrump -lrumpuser -lrump -lpthread | |
13 | 13 | |||
14 | WARNS= 4 | 14 | WARNS= 4 | |
15 | NOMAN= | 15 | NOMAN= | |
16 | 16 | |||
17 | KERNSPACE != cd ${.CURDIR}/../../kernspace && ${PRINTOBJDIR} | 17 | KERNSPACE != cd ${.CURDIR}/../../kernspace && ${PRINTOBJDIR} | |
18 | LDADD+= -L${KERNSPACE} -lkernspace | 18 | LDADD+= -L${KERNSPACE} -lkernspace | |
19 | 19 | |||
20 | .include <bsd.test.mk> | 20 | .include <bsd.test.mk> |
--- src/tests/rump/rumpvfs/Makefile 2011/02/22 10:36:14 1.3
+++ src/tests/rump/rumpvfs/Makefile 2014/08/10 06:57:32 1.3.20.1
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2011/02/22 10:36:14 pooka Exp $ | 1 | # $NetBSD: Makefile,v 1.3.20.1 2014/08/10 06:57:32 tls Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | TESTSDIR= ${TESTSBASE}/rump/rumpvfs | 5 | TESTSDIR= ${TESTSBASE}/rump/rumpvfs | |
6 | 6 | |||
7 | TESTS_C= t_basic | 7 | TESTS_C= t_basic | |
8 | TESTS_C+= t_etfs | 8 | TESTS_C+= t_etfs | |
9 | TESTS_C+= t_p2kifs | 9 | TESTS_C+= t_p2kifs | |
10 | 10 | |||
11 | LDADD= -lrumpvfs -lrump -lrumpuser -lpthread | 11 | LDADD= -lrumpvfs -lrump -lrumpuser -lrump -lpthread | |
12 | 12 | |||
13 | WARNS= 4 | 13 | WARNS= 4 | |
14 | 14 | |||
15 | .include <bsd.test.mk> | 15 | .include <bsd.test.mk> |
--- src/tests/rump/rumpvfs/t_etfs.c 2010/11/30 18:19:47 1.9
+++ src/tests/rump/rumpvfs/t_etfs.c 2014/08/10 06:57:32 1.9.22.1
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: t_etfs.c,v 1.9 2010/11/30 18:19:47 pooka Exp $ */ | 1 | /* $NetBSD: t_etfs.c,v 1.9.22.1 2014/08/10 06:57:32 tls Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2010 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2010 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -93,26 +93,28 @@ ATF_TC_BODY(reregister_reg, tc) | @@ -93,26 +93,28 @@ ATF_TC_BODY(reregister_reg, tc) | |||
93 | 93 | |||
94 | /* check that we have what we expected */ | 94 | /* check that we have what we expected */ | |
95 | ATF_REQUIRE_STREQ(buf, TESTSTR1); | 95 | ATF_REQUIRE_STREQ(buf, TESTSTR1); | |
96 | 96 | |||
97 | /* ... while here, check that writing works too */ | 97 | /* ... while here, check that writing works too */ | |
98 | ATF_REQUIRE_EQ(rump_sys_lseek(tfd, 0, SEEK_SET), 0); | 98 | ATF_REQUIRE_EQ(rump_sys_lseek(tfd, 0, SEEK_SET), 0); | |
99 | ATF_REQUIRE(TESTSTR1SZ <= TESTSTR2SZ); | 99 | ATF_REQUIRE(TESTSTR1SZ <= TESTSTR2SZ); | |
100 | ATF_REQUIRE_EQ(rump_sys_write(tfd, TESTSTR2, TESTSTR2SZ), TESTSTR2SZ); | 100 | ATF_REQUIRE_EQ(rump_sys_write(tfd, TESTSTR2, TESTSTR2SZ), TESTSTR2SZ); | |
101 | 101 | |||
102 | memset(buf, 0, sizeof(buf)); | 102 | memset(buf, 0, sizeof(buf)); | |
103 | ATF_REQUIRE_EQ(lseek(localfd, 0, SEEK_SET), 0); | 103 | ATF_REQUIRE_EQ(lseek(localfd, 0, SEEK_SET), 0); | |
104 | ATF_REQUIRE(read(localfd, buf, sizeof(buf)) > 0); | 104 | ATF_REQUIRE(read(localfd, buf, sizeof(buf)) > 0); | |
105 | ATF_REQUIRE_STREQ(buf, TESTSTR2); | 105 | ATF_REQUIRE_STREQ(buf, TESTSTR2); | |
106 | close(etcfd); | |||
107 | close(localfd); | |||
106 | } | 108 | } | |
107 | 109 | |||
108 | ATF_TC(reregister_blk); | 110 | ATF_TC(reregister_blk); | |
109 | ATF_TC_HEAD(reregister_blk, tc) | 111 | ATF_TC_HEAD(reregister_blk, tc) | |
110 | { | 112 | { | |
111 | 113 | |||
112 | atf_tc_set_md_var(tc, "descr", "Tests register/unregister/register " | 114 | atf_tc_set_md_var(tc, "descr", "Tests register/unregister/register " | |
113 | "for a block device"); | 115 | "for a block device"); | |
114 | } | 116 | } | |
115 | 117 | |||
116 | ATF_TC_BODY(reregister_blk, tc) | 118 | ATF_TC_BODY(reregister_blk, tc) | |
117 | { | 119 | { | |
118 | char buf[512 * 128]; | 120 | char buf[512 * 128]; |