Module Name: src Committed By: christos Date: Fri Dec 4 01:21:12 UTC 2015
Modified Files: src/tests/sbin/gpt: Makefile t_gpt.sh Log Message: checking multiple things does not work! atf-bug! To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/sbin/gpt/Makefile cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/gpt/t_gpt.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/sbin/gpt/Makefile diff -u src/tests/sbin/gpt/Makefile:1.1 src/tests/sbin/gpt/Makefile:1.2 --- src/tests/sbin/gpt/Makefile:1.1 Thu Dec 3 20:06:17 2015 +++ src/tests/sbin/gpt/Makefile Thu Dec 3 20:21:12 2015 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2015/12/04 01:06:17 christos Exp $ +# $NetBSD: Makefile,v 1.2 2015/12/04 01:21:12 christos Exp $ .include <bsd.own.mk> @@ -7,6 +7,7 @@ TESTSDIR= ${TESTSBASE}/sbin/gpt TESTS_SH= t_gpt FILESDIR= ${TESTSDIR} -FILES= gpt.2disk.guid gpt.2part gpt.backup gpt.empty +FILES= gpt.2disk.show.guid gpt.2part.show.normal gpt.empty.show.normal +FILES+= gpt.backup .include <bsd.test.mk> Index: src/tests/sbin/gpt/t_gpt.sh diff -u src/tests/sbin/gpt/t_gpt.sh:1.2 src/tests/sbin/gpt/t_gpt.sh:1.3 --- src/tests/sbin/gpt/t_gpt.sh:1.2 Thu Dec 3 20:06:43 2015 +++ src/tests/sbin/gpt/t_gpt.sh Thu Dec 3 20:21:12 2015 @@ -1,5 +1,4 @@ -#!/bin/sh -# $NetBSD: t_gpt.sh,v 1.2 2015/12/04 01:06:43 christos Exp $ +# $NetBSD: t_gpt.sh,v 1.3 2015/12/04 01:21:12 christos Exp $ # # Copyright (c) 2015 The NetBSD Foundation, Inc. # All rights reserved. @@ -49,11 +48,12 @@ prepare_2part() { gpt add $disk } +# Calling this from tests does not work. BUG! check_2part() { - atf_check -s exit:0 -o file:gpt.2part.show.normal \ - -e empty gpt show $disk - atf_check -s exit:0 -o file:gpt.2part.show.guid \ - -e empty gpt show -g $disk +# atf_check -s exit:0 -o file:gpt.2part.show.normal \ +# -e empty gpt show $disk +# atf_check -s exit:0 -o file:gpt.2part.show.guid \ +# -e empty gpt show -g $disk } partmsg() {