aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-22 13:36:25 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-22 13:36:25 +0200
commitb7f4dfb3a5db1c0df58cfb1a357f9651a7a1fb9f (patch)
tree815b8123012160ced31bc48326107f56f0845228
parentAdd a package test fixture and fix USE flag tests (diff)
downloadpackages-5-b7f4dfb3a5db1c0df58cfb1a357f9651a7a1fb9f.tar.gz
packages-5-b7f4dfb3a5db1c0df58cfb1a357f9651a7a1fb9f.tar.bz2
packages-5-b7f4dfb3a5db1c0df58cfb1a357f9651a7a1fb9f.zip
Use the fixture repo in the test environment
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--config/environments/test.rb2
-rw-r--r--test/fixtures/repo/profiles/repo_name1
-rw-r--r--test/fixtures/repo/profiles/use.desc2
3 files changed, 5 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 1c19f08..2eae20e 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -40,3 +40,5 @@ Rails.application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
end
+
+KKULEOMI_PORTDIR = Rails.root.join('test', 'fixtures', 'repo')
diff --git a/test/fixtures/repo/profiles/repo_name b/test/fixtures/repo/profiles/repo_name
new file mode 100644
index 0000000..e448b2d
--- /dev/null
+++ b/test/fixtures/repo/profiles/repo_name
@@ -0,0 +1 @@
+packages-test
diff --git a/test/fixtures/repo/profiles/use.desc b/test/fixtures/repo/profiles/use.desc
new file mode 100644
index 0000000..111e4d1
--- /dev/null
+++ b/test/fixtures/repo/profiles/use.desc
@@ -0,0 +1,2 @@
+test - Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
+