1 /** 2 Copyright: Copyright (c) 2018, Joakim Brännström. All rights reserved. 3 License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) 4 Author: Joakim Brännström (joakim.brannstrom@gmx.com) 5 */ 6 module integration; 7 8 import config; 9 10 @("shall build the distssh command") 11 unittest { 12 prepareDistssh; 13 } 14 15 @("shall install the symlinks beside the binary") 16 unittest { 17 prepareDistssh; 18 assert(spawnShell(distssh ~ " --install").wait == 0, "failed installing symlinks"); 19 assert(exists(buildPath(buildDir, "distcmd")), "no symlink created)"); 20 assert(exists(buildPath(buildDir, "distshell")), "no symlink created)"); 21 } 22 23 @("shall export the env and import it") 24 unittest { 25 prepareDistssh; 26 assert(spawnShell(distssh ~ " --export-env").wait == 0, "failed exporting env"); 27 assert(spawnShell(distssh ~ " --local-run --import-env=distssh_env.export -- ls") 28 .wait == 0, "failed importing env"); 29 }