From 28e37813314105b1f37a3f99e901e46a2c2f00fd Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 30 Nov 2018 23:05:41 -0500 Subject: [PATCH] add configure spec testing --prefix --- spec/build_tests_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/build_tests_spec.rb b/spec/build_tests_spec.rb index 435b252..322203f 100644 --- a/spec/build_tests_spec.rb +++ b/spec/build_tests_spec.rb @@ -1870,11 +1870,12 @@ EOF it "does everything" do test_dir "configure" create_exe "pkg-config", "echo '-DMYPACKAGE'" - result = run_rscons(rsconscript: "everything.rb", op: %w[configure --build=bb]) + result = run_rscons(rsconscript: "everything.rb", op: %w[configure --build=bb --prefix=/my/prefix]) expect(result.stderr).to eq "" expect(result.status).to eq 0 expect(result.stdout).to match /Configuring configure test\.\.\./ expect(result.stdout).to match /Setting build directory\.\.\. bb/ + expect(result.stdout).to match %r{Setting prefix\.\.\. /my/prefix} expect(result.stdout).to match /Checking for C compiler\.\.\. gcc/ expect(result.stdout).to match /Checking for C\+\+ compiler\.\.\. g++/ expect(result.stdout).to match /Checking for D compiler\.\.\. gdc/