Skip to content

Commit

Permalink
Fix build and tests (absolutely minimal yet)
Browse files Browse the repository at this point in the history
Issue: #84
  • Loading branch information
kkm committed Oct 15, 2018
1 parent 1405a14 commit 826bdcc
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,8 +1,8 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# Fake dir
.fake
/.*/
/paket-files/

# User-specific files
*.suo
Expand Down
2 changes: 1 addition & 1 deletion src/FsLex/fslexast.fs
@@ -1,6 +1,6 @@
(* (c) Microsoft Corporation 2005-2008. *)

module FsLexYacc.FsLex.AST
module internal FsLexYacc.FsLex.AST

open System.Collections.Generic
open Microsoft.FSharp.Text
Expand Down
1 change: 1 addition & 0 deletions tests/JsonLexAndYaccExample/JsonLexAndYaccExample.fsproj
Expand Up @@ -12,6 +12,7 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.3.1.0</TargetFSharpCoreVersion>
<Name>JsonLexAndYaccExample</Name>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
6 changes: 3 additions & 3 deletions tests/LexAndYaccMiniProject/LexAndYaccMiniProject.fsproj
Expand Up @@ -52,13 +52,13 @@
</FsLex>
</ItemGroup>
<ItemGroup>
<Reference Include="FSharp.Core">
<HintPath>..\..\packages\FSharp.Core\lib\net40\FSharp.Core.dll</HintPath>
</Reference>
<Reference Include="FsLexYacc.Runtime">
<HintPath>..\..\bin\FsLexYacc.Runtime.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions tests/TestProjectUsingNugetPackage/.gitignore
@@ -0,0 +1,3 @@
Lexer.fs
Parser.fs
Parser.fsi
2 changes: 1 addition & 1 deletion tests/fsyacc/.gitignore
@@ -1,4 +1,3 @@

/FSharp.Core.dll
/FsLexYacc.Runtime.dll
/repro1885.fs
Expand Down Expand Up @@ -27,3 +26,4 @@
/test2compat.exe
/test2compat.ml
/test2compat.mli
/test*.exe.config
13 changes: 6 additions & 7 deletions tests/fsyacc/OldFsYaccTests.fsx
Expand Up @@ -11,7 +11,7 @@ open System.IO

let run exe args =
traceImportant <| sprintf "Running '%s' with args '%s'" exe args
if not <| directExec (fun x->
if not <| directExec (fun x->
x.FileName <- exe
x.Arguments <- args)
then failwithf "'%s' failed '%s'" exe args
Expand All @@ -21,12 +21,11 @@ let fsYacc = run @"..\..\bin\fsyacc.exe"
let fsc output files =
traceImportant <| sprintf "Building '%s' with from %A" output files
"lexing.fs"::"parsing.fs"::@"..\..\src\Common\Arg.fs"::"arg.fs"::"tree.ml"::files
|> Fsc (fun p ->
{ p with References = [@"FsLexYacc.Runtime.dll"
@"System.Runtime"
@"System.IO"
@"..\..\packages\FSharp.Core\lib\net40\FSharp.Core.dll"]
Output = output; Debug = true; FscTarget = FscTarget.Exe })
|> Compile [ Out output; Target TargetType.Exe; Debug true; NoFramework
Reference @"FsLexYacc.Runtime.dll"
Reference @"System.Runtime"
Reference @"System.IO"
Reference @"..\..\packages\FSharp.Core\lib\net40\FSharp.Core.dll" ]
File.WriteAllText(output |> FileHelper.changeExt ".exe.config","""<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
Expand Down

0 comments on commit 826bdcc

Please sign in to comment.