CVS commit: src/tests/dev/dm

2016-01-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jan 23 21:18:27 UTC 2016

Modified Files:
src/tests/dev/dm: h_dm.c

Log Message:
XXX: use unused variables.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/dev/dm/h_dm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/dev/dm/h_dm.c
diff -u src/tests/dev/dm/h_dm.c:1.1 src/tests/dev/dm/h_dm.c:1.2
--- src/tests/dev/dm/h_dm.c:1.1	Wed Oct  6 07:24:55 2010
+++ src/tests/dev/dm/h_dm.c	Sat Jan 23 16:18:27 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: h_dm.c,v 1.1 2010/10/06 11:24:55 haad Exp $	*/
+/*	$NetBSD: h_dm.c,v 1.2 2016/01/23 21:18:27 christos Exp $	*/
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -83,6 +83,7 @@ dm_test_versions(void) {
 	dict_out = prop_dictionary_internalize(prefp.pref_plist);
 	
 	xml = prop_dictionary_externalize(dict_out);
+	__USE(xml);
 
 	rump_sys_close(fd);
 
@@ -122,6 +123,7 @@ dm_test_targets(void) {
 	dict_out = prop_dictionary_internalize(prefp.pref_plist);
 	
 	xml = prop_dictionary_externalize(dict_out);
+	__USE(xml);
 
 	rump_sys_close(fd);
 



CVS commit: src/tests/dev/dm

2010-10-06 Thread Adam Hamsik
Module Name:src
Committed By:   haad
Date:   Wed Oct  6 11:24:56 UTC 2010

Added Files:
src/tests/dev/dm: Atffile Makefile dm_targets_cmd.plist
dm_version_cmd.plist h_dm.c t_dm.sh

Log Message:
Import new test program for device-mapper driver it currently call 
dm_version_list
and dm_targets_list ioctl to test if dm driver inside rump works.

It will be disable for now, because I need to find out why if I run this
test by atf-run it fails while running h_dm by hand works.

XXX. component.c in rump/libdm calls devsw_attach before dm_modcmd can do
that therefore unmodified modcmd returns error.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/dev/dm/Atffile src/tests/dev/dm/Makefile \
src/tests/dev/dm/dm_targets_cmd.plist \
src/tests/dev/dm/dm_version_cmd.plist src/tests/dev/dm/h_dm.c \
src/tests/dev/dm/t_dm.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/tests/dev/dm/Atffile
diff -u /dev/null src/tests/dev/dm/Atffile:1.1
--- /dev/null	Wed Oct  6 11:24:56 2010
+++ src/tests/dev/dm/Atffile	Wed Oct  6 11:24:55 2010
@@ -0,0 +1,6 @@
+Content-Type: application/X-atf-atffile; version=1
+X-NetBSD-Id: $NetBSD: Atffile,v 1.1 2010/10/06 11:24:55 haad Exp $
+
+prop: test-suite = NetBSD
+
+tp-glob: t_*
Index: src/tests/dev/dm/Makefile
diff -u /dev/null src/tests/dev/dm/Makefile:1.1
--- /dev/null	Wed Oct  6 11:24:56 2010
+++ src/tests/dev/dm/Makefile	Wed Oct  6 11:24:55 2010
@@ -0,0 +1,27 @@
+
+#	$NetBSD: Makefile,v 1.1 2010/10/06 11:24:55 haad Exp $
+#
+
+.include bsd.own.mk
+
+TESTSDIR=	${TESTSBASE}/dev/dm
+FILESDIR=	${TESTSDIR}
+
+TESTS_SH=	t_dm
+TESTS_C=	h_dm
+
+ATFFILE=	yes
+
+
+LDADD+= -lprop -lutil
+LDADD+= -lrumpdev_disk -lrumpdev_dm
+LDADD+=	-lrumpdev -lrumpvfs
+LDADD+=	-lrump
+LDADD+=	-lrumpuser -lpthread
+
+FILES=		t_dm_disk_1.bz2.uue t_dm_disk_2.bz2.uue t_dm_disk_3.bz2.uue
+
+WARNS=	4
+NOMAN=
+
+.include bsd.test.mk
Index: src/tests/dev/dm/dm_targets_cmd.plist
diff -u /dev/null src/tests/dev/dm/dm_targets_cmd.plist:1.1
--- /dev/null	Wed Oct  6 11:24:56 2010
+++ src/tests/dev/dm/dm_targets_cmd.plist	Wed Oct  6 11:24:55 2010
@@ -0,0 +1,20 @@
+?xml version=1.0 encoding=UTF-8?
+!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd;
+plist version=1.0
+dict
+keycmd_data/key
+array/
+keycommand/key
+stringtargets/string
+keyevent_nr/key
+integer0x0/integer
+keyflags/key
+integer0x4/integer
+keyversion/key
+array
+integer0x4/integer
+integer0x1/integer
+integer0x0/integer
+/array
+/dict
+/plist
\ No newline at end of file
Index: src/tests/dev/dm/dm_version_cmd.plist
diff -u /dev/null src/tests/dev/dm/dm_version_cmd.plist:1.1
--- /dev/null	Wed Oct  6 11:24:56 2010
+++ src/tests/dev/dm/dm_version_cmd.plist	Wed Oct  6 11:24:55 2010
@@ -0,0 +1,20 @@
+?xml version=1.0 encoding=UTF-8?
+!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd;
+plist version=1.0
+dict
+keycmd_data/key
+array/
+keycommand/key
+stringversion/string
+keyevent_nr/key
+integer0x0/integer
+keyflags/key
+integer0x4/integer
+keyversion/key
+array
+integer0x4/integer
+integer0x0/integer
+integer0x0/integer
+/array
+/dict
+/plist
\ No newline at end of file
Index: src/tests/dev/dm/h_dm.c
diff -u /dev/null src/tests/dev/dm/h_dm.c:1.1
--- /dev/null	Wed Oct  6 11:24:56 2010
+++ src/tests/dev/dm/h_dm.c	Wed Oct  6 11:24:55 2010
@@ -0,0 +1,146 @@
+/*	$NetBSD: h_dm.c,v 1.1 2010/10/06 11:24:55 haad Exp $	*/
+
+/*
+ * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF