From b1e208d0a180a4f8d7a721511f2ad343164bce5f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 27 May 2013 06:01:31 -0400 Subject: Add unit tests for oh-installfiles. --- (limited to 'tests/t_installfiles_dir') diff --git a/tests/t_installfiles_dir b/tests/t_installfiles_dir new file mode 100644 index 0000000..e112e3a --- /dev/null +++ b/tests/t_installfiles_dir @@ -0,0 +1,17 @@ +#!/bin/sh + +mkdir foo.pkg +cat >foo.pkg/files <<-EOF + /usr/bin + EOF + +mkdir -p tmp/dest/usr/bin +>tmp/dest/usr/bin/foo + +cd tmp +OPK_PACKAGES='foo' oh-installfiles +assert test_non_dir_nodes dest +assert test_nodes foo.data / /usr/ /usr/bin/ /usr/bin/foo +cd .. + +rm -Rf foo.pkg tmp -- cgit v0.9.1