From b36fddf91da8f95b4d46d128644dfaa66407c2ca Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 2 Nov 2012 09:50:51 -0400 Subject: [PATCH] moving around the test data files, for unit testing --- run.sh | 5 +- src/test/resources/contents.list | 112 +++++++++++++++++++ {data => src/test/resources}/test-certv3.pem | 0 3 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/contents.list rename {data => src/test/resources}/test-certv3.pem (100%) diff --git a/run.sh b/run.sh index e0a6af5..8651848 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,7 @@ #!/bin/sh -java -cp ./lib/bcprov-jdk16-1.46.jar:$(ls -rt ./dist/*jar | tail -1) com.hashbangbash.trie.App ./data/test-certv3.pem +java \ + -cp ./lib/bcprov-jdk16-1.46.jar:$(ls -rt ./target/*jar | tail -1) \ + com.hashbangbash.trie.App \ + ./src/test/resources/test-certv3.pem diff --git a/src/test/resources/contents.list b/src/test/resources/contents.list new file mode 100644 index 0000000..e476ab5 --- /dev/null +++ b/src/test/resources/contents.list @@ -0,0 +1,112 @@ +/content/beta/rhel/server/6/$releasever/$basearch/sap/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/sap/os +/content/dist/rhel/server/6/$releasever/$basearch/sap/debug +/content/dist/rhel/server/5/$releasever/$basearch/sap/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/sap/source/SRPMS +/content/dist/rhel/server/5/$releasever/$basearch/sap/os +/content/beta/rhel/server/5/$releasever/$basearch/sap/debug +/content/beta/rhel/server/5/$releasever/$basearch/sap/os +/content/beta/rhel/server/5/$releasever/$basearch/sap/source/SRPMS +/content/beta/rhel/server/6/$releasever/$basearch/sap/os +/content/beta/rhel/server/6/$releasever/$basearch/sap/debug +/content/dist/rhel/server/5/$releasever/$basearch/sap/debug +/content/beta/rhel/server/5/$releasever/$basearch/source/iso +/content/dist/rhel/server/5/$releasever/$basearch/os +/content/beta/rhel/server/6/$releasever/$basearch/optional/debug +/content/beta/rhel/server/6/$releasever/$basearch/cf-tools/1.0/os +/content/beta/rhel/server/6/$releasever/$basearch/rhev-agent/3.0/os +/content/beta/rhel/server/5/$releasever/$basearch/vt/debug +/content/beta/rhel/server/6/$releasever/$basearch/cf-tools/1.0/debug +/content/beta/rhel/server/6/$releasever/$basearch/optional/source/SRPMS +/content/dist/rhel/server/5/$releasever/$basearch/debug +/content/dist/rhel/server/6/$releasever/$basearch/supplementary/debug +/content/dist/rhel/server/5/$releasever/$basearch/supplementary/os +/content/dist/rhel/server/6/$releasever/$basearch/os +/content/dist/rhel/server/6/$releasever/$basearch/optional/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/source/iso +/content/dist/rhel/server/5/$releasever/$basearch/productivity/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/cf-tools/1.0/debug +/content/dist/rhel/server/5/$releasever/$basearch/rhev-agent/3.0/os +/content/dist/rhel/server/6/$releasever/$basearch/supplementary/os +/content/dist/rhel/server/5/$releasever/$basearch/vt/os +/content/dist/rhel/server/6/$releasever/$basearch/optional/os +/content/beta/rhel/server/5/$releasever/$basearch/supplementary/debug +/content/dist/rhel/server/6/$releasever/$basearch/supplementary/iso +/content/beta/rhel/server/5/$releasever/$basearch/debug +/content/beta/rhel/server/6/$releasever/$basearch/subscription-asset-manager/debug +/content/dist/rhel/server/5/$releasever/$basearch/rhev-agent/3.0/source/SRPMS +/content/beta/rhel/server/6/$releasever/$basearch/subscription-asset-manager/source/SRPMS +/content/beta/rhel/server/6/$releasever/$basearch/os +/content/dist/rhel/server/6/$releasever/$basearch/rhev-agent/3.0/source/SRPMS +/content/beta/rhel/server/5/$releasever/$basearch/supplementary/source/SRPMS +/content/beta/rhel/server/5/$releasever/$basearch/supplementary/os +/content/dist/rhel/server/5/$releasever/$basearch/source/iso +/content/beta/rhel/server/5/$releasever/$basearch/vt/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/subscription-asset-manager/1/debug +/content/beta/rhel/server/5/$releasever/$basearch/supplementary/iso +/content/dist/rhel/server/5/$releasever/$basearch/productivity/debug +/content/beta/rhel/server/6/$releasever/$basearch/cf-tools/1.0/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/cf-tools/1.0/os +/content/beta/rhel/server/6/$releasever/$basearch/source/iso +/content/dist/rhel/server/6/$releasever/$basearch/cf-tools/1.0/source/SRPMS +/content/dist/rhel/server/5/$releasever/$basearch/iso +/content/dist/rhel/server/5/$releasever/$basearch/productivity/os +/content/beta/rhel/server/5/$releasever/$basearch/rhev-agent/3.0/debug +/content/beta/rhel/server/6/$releasever/$basearch/rhev-agent/3.0/debug +/content/dist/rhel/server/5/$releasever/$basearch/vt/debug +/content/beta/rhel/server/6/$releasever/$basearch/source/SRPMS +/content/beta/rhel/server/5/$releasever/$basearch/cf-tools/1.0/source/SRPMS +/content/beta/rhel/server/5/$releasever/$basearch/rhev-agent/3.0/os +/content/dist/rhel/server/6/$releasever/$basearch/rhev-agent/3.0/debug +/content/beta/rhel/server/6/$releasever/$basearch/supplementary/debug +/content/dist/rhel/server/5/$releasever/$basearch/cf-tools/1.0/os +/content/beta/rhel/server/6/$releasever/$basearch/iso +/content/beta/rhel/server/5/$releasever/$basearch/iso +/content/beta/rhel/server/6/$releasever/$basearch/supplementary/os +/content/dist/rhel/server/5/$releasever/$basearch/supplementary/iso +/content/beta/rhel/server/5/$releasever/$basearch/cf-tools/1.0/os +/content/beta/rhel/server/6/$releasever/$basearch/optional/os +/content/beta/rhel/server/6/$releasever/$basearch/supplementary/iso +/content/dist/rhel/server/5/$releasever/$basearch/source/SRPMS +/content/beta/rhel/server/6/$releasever/$basearch/debug +/content/beta/rhel/server/6/$releasever/$basearch/subscription-asset-manager/os +/content/dist/rhel/server/5/$releasever/$basearch/supplementary/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/iso +/content/dist/rhel/server/5/$releasever/$basearch/rhev-agent/3.0/debug +/content/dist/rhel/server/6/$releasever/$basearch/subscription-asset-manager/1/os +/content/dist/rhel/server/6/$releasever/$basearch/debug +/content/beta/rhel/server/6/$releasever/$basearch/supplementary/source/SRPMS +/content/dist/rhel/server/5/$releasever/$basearch/vt/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/rhev-agent/3.0/os +/content/beta/rhel/server/5/$releasever/$basearch/rhev-agent/3.0/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/subscription-asset-manager/1/source/SRPMS +/content/beta/rhel/server/5/$releasever/$basearch/os +/content/dist/rhel/server/6/$releasever/$basearch/supplementary/source/SRPMS +/content/beta/rhel/server/5/$releasever/$basearch/vt/os +/content/dist/rhel/server/5/$releasever/$basearch/supplementary/debug +/content/dist/rhel/server/6/$releasever/$basearch/optional/debug +/content/dist/rhel/server/5/$releasever/$basearch/cf-tools/1.0/source/SRPMS +/content/beta/rhel/server/6/$releasever/$basearch/rhev-agent/3.0/source/SRPMS +/content/beta/rhel/server/5/$releasever/$basearch/source/SRPMS +/content/dist/rhel/server/6/$releasever/$basearch/source/SRPMS +/content/rhb/rhel/client/6/$releasever/$basearch/devtoolset/os +/content/rhb/rhel/workstation/5/$releasever/$basearch/devtoolset/source/SRPMS +/content/rhb/rhel/client/5/$releasever/$basearch/devtoolset/source/SRPMS +/content/rhb/rhel/client/5/$releasever/$basearch/devtoolset/os +/content/rhb/rhel/client/5/$releasever/$basearch/devtoolset/debug +/content/rhb/rhel/computenode/6/$releasever/$basearch/devtoolset/os +/content/rhb/rhel/server/6/$releasever/$basearch/devtoolset/debug +/content/rhb/rhel/workstation/6/$releasever/$basearch/devtoolset/debug +/content/rhb/rhel/server/6/$releasever/$basearch/devtoolset/source/SRPMS +/content/rhb/rhel/workstation/5/$releasever/$basearch/devtoolset/os +/content/rhb/rhel/computenode/6/$releasever/$basearch/devtoolset/debug +/content/rhb/rhel/workstation/6/$releasever/$basearch/devtoolset/source/SRPMS +/content/rhb/rhel/workstation/6/$releasever/$basearch/devtoolset/os +/content/rhb/rhel/computenode/6/$releasever/$basearch/devtoolset/source/SRPMS +/content/rhb/rhel/client/6/$releasever/$basearch/devtoolset/debug +/content/rhb/rhel/server/6/$releasever/$basearch/devtoolset/os +/content/rhb/rhel/workstation/5/$releasever/$basearch/devtoolset/debug +/content/rhb/rhel/client/6/$releasever/$basearch/devtoolset/source/SRPMS +/content/rhb/rhel/server/5/$releasever/$basearch/devtoolset/debug +/content/rhb/rhel/server/5/$releasever/$basearch/devtoolset/os +/content/rhb/rhel/server/5/$releasever/$basearch/devtoolset/source/SRPMS diff --git a/data/test-certv3.pem b/src/test/resources/test-certv3.pem similarity index 100% rename from data/test-certv3.pem rename to src/test/resources/test-certv3.pem