#!/bin/bash

throw() {
  echo >&2 $1
  exit 1
}

clib install -o tmp ms file hash > /dev/null
[ $? -eq 0 ] || throw "expecting successful exit code"

[ -d ./tmp/ms ] && [ -f ./tmp/ms/package.json ] ||
  throw "failed to install ms"

[ -d ./tmp/file ] && [ -f ./tmp/file/package.json ] ||
  throw "failed to install file"

[ -d ./tmp/hash ] && [ -f ./tmp/hash/package.json ] ||
  throw "failed to install hash"

rm -rf ./tmp

Test installing multiple libs from the clibs namespace
Test installing multiple libs from the clibs namespace
