From 6ff0fcd1bd76a90ba234927f5d386ed94f0c5138 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Jul 30 2015 12:51:37 +0000 Subject: Now really move tests stuff to unit-test --- diff --git a/golang-github-abbot-go-http-auth.spec b/golang-github-abbot-go-http-auth.spec index dc4d1c1..10a49ef 100644 --- a/golang-github-abbot-go-http-auth.spec +++ b/golang-github-abbot-go-http-auth.spec @@ -127,11 +127,6 @@ for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list done %endif -cp -pav test.htdigest %{buildroot}/%{gopath}/src/%{import_path}/ -echo "%%{gopath}/src/%%{import_path}/test.htdigest" >> devel.file-list -cp -pav test.htpasswd %{buildroot}/%{gopath}/src/%{import_path}/ -echo "%%{gopath}/src/%%{import_path}/test.htpasswd" >> devel.file-list - # testing files for this project %if 0%{?with_unit_test} @@ -142,6 +137,10 @@ for file in $(find . -iname "*_test.go"); do cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list done +cp -pav test.htdigest %{buildroot}/%{gopath}/src/%{import_path}/ +echo "%%{gopath}/src/%%{import_path}/test.htdigest" >> unit-test.file-list +cp -pav test.htpasswd %{buildroot}/%{gopath}/src/%{import_path}/ +echo "%%{gopath}/src/%%{import_path}/test.htpasswd" >> unit-test.file-list %endif %check