# Path: confduino/boardlist.py
# @entrypoint
# def print_boards(hwpack='arduino', verbose=False):
#     """print boards from boards.txt."""
#     if verbose:
#         pp(boards(hwpack))
#     else:
#         print('\n'.join(board_names(hwpack)))
# 
# Path: confduino/hwpacklist.py
# @entrypoint
# def print_hwpacks():
#     """print installed arduino hardware packages."""
#     print('\n'.join(hwpack_names()))
# 
# Path: confduino/liblist.py
# @entrypoint
# def print_libraries():
#     """print installed arduino libraries."""
#     print('\n'.join(libraries()))
# 
# Path: confduino/mculist.py
# @entrypoint
# def print_mcus():
#     """print boards from boards.txt."""
#     ls = unmunchify(mcus())
#     print('\n'.join(ls))
# 
# Path: confduino/proglist.py
# @entrypoint
# def print_programmers(verbose=False):
#     """print programmers from programmers.txt."""
#     if verbose:
#         pp(programmers())
#     else:
#         print('\n'.join(programmer_names()))
# 
# Path: confduino/version.py
# @entrypoint
# def print_version(integer=False):
#     """print arduino version.
# 
#     example: 0022
# 
#     """
#     if integer:
#         print(intversion())
#     else:
#         print(version())


from confduino.boardlist import print_boards
from confduino.hwpacklist import print_hwpacks
from confduino.liblist import print_libraries
from confduino.mculist import print_mcus
from confduino.proglist import print_programmers
from confduino.version import print_version
from nose.tools import eq_
from data import TEST_ARDUINO_PATHS
import os


def test_print():
    for x in TEST_ARDUINO_PATHS:
        os.environ['ARDUINO_HOME'] = x
        print ('ARDUINO_HOME=%s' % x)

        print_boards()

# Path: confduino/boardlist.py
# @entrypoint
# def print_boards(hwpack='arduino', verbose=False):
#     """print boards from boards.txt."""
#     if verbose:
#         pp(boards(hwpack))
#     else:
#         print('\n'.join(board_names(hwpack)))
# 
# Path: confduino/hwpacklist.py
# @entrypoint
# def print_hwpacks():
#     """print installed arduino hardware packages."""
#     print('\n'.join(hwpack_names()))
# 
# Path: confduino/liblist.py
# @entrypoint
# def print_libraries():
#     """print installed arduino libraries."""
#     print('\n'.join(libraries()))
# 
# Path: confduino/mculist.py
# @entrypoint
# def print_mcus():
#     """print boards from boards.txt."""
#     ls = unmunchify(mcus())
#     print('\n'.join(ls))
# 
# Path: confduino/proglist.py
# @entrypoint
# def print_programmers(verbose=False):
#     """print programmers from programmers.txt."""
#     if verbose:
#         pp(programmers())
#     else:
#         print('\n'.join(programmer_names()))
# 
# Path: confduino/version.py
# @entrypoint
# def print_version(integer=False):
#     """print arduino version.
# 
#     example: 0022
# 
#     """
#     if integer:
#         print(intversion())
#     else:
#         print(version())


# Path: tests/test_print.py
from confduino.boardlist import print_boards
from confduino.hwpacklist import print_hwpacks
from confduino.liblist import print_libraries
from confduino.mculist import print_mcus
from confduino.proglist import print_programmers
from confduino.version import print_version
from nose.tools import eq_
from data import TEST_ARDUINO_PATHS
import os



def test_print():
    for x in TEST_ARDUINO_PATHS:
        os.environ['ARDUINO_HOME'] = x
        print ('ARDUINO_HOME=%s' % x)

        print_boards()

        print_hwpacks()