move out of tests/

This commit is contained in:
Ben Burdette 2020-04-03 14:55:26 -06:00
parent 9bb528d392
commit 9a8b3e9747
4 changed files with 14 additions and 14 deletions

View file

@ -16,7 +16,7 @@ makefiles = \
doc/manual/local.mk \
tests/local.mk \
tests/plugins/local.mk \
tests/errors/local.mk
src/error-demo/local.mk
-include Makefile.config

View file

@ -1,5 +1,5 @@
#include "../../src/libutil/error.hh"
#include "../../src/libexpr/nixexpr.hh"
#include "error.hh"
#include "nixexpr.hh"
#include <iostream>
#include <optional>
@ -9,7 +9,7 @@ int main()
using namespace nix;
// In each program where errors occur, this has to be set.
ErrorInfo::programName = std::optional("error-test");
ErrorInfo::programName = std::optional("error-demo");
// There are currently four error types:
//

10
src/error-demo/local.mk Normal file
View file

@ -0,0 +1,10 @@
programs += error-demo
error-demo_DIR := $(d)
error-demo_SOURCES := \
$(wildcard $(d)/*.cc) \
error-demo_LIBS = libutil
error-demo_LDFLAGS = -pthread $(SODIUM_LIBS) $(EDITLINE_LIBS) $(BOOST_LDFLAGS) -lboost_context -lboost_thread -lboost_system

View file

@ -1,10 +0,0 @@
programs += error-test
error-test_DIR := $(d)
error-test_SOURCES := \
$(wildcard $(d)/*.cc) \
error-test_LIBS = libutil
error-test_LDFLAGS = -pthread $(SODIUM_LIBS) $(EDITLINE_LIBS) $(BOOST_LDFLAGS) -lboost_context -lboost_thread -lboost_system