Skip to content

Commit 90e8c1b

Browse files
committed
[REPLACE] Replace old name in all files
This will change many files, and likely not build Here is the script used to do the replacement: ``` NEWNAME="Scalar" LOWERNAME="scalar" for file in $(find . -type f -name '*') do if [[ $file == *.png ]] then continue fi if [[ $file == *.ico ]] then continue fi if [[ $file == *cddl1.txt ]] then continue fi if [[ $file == *.rc ]] then continue fi if [[ $file == *index_v4 ]] then continue fi if [[ $file == ./.git/* ]] then continue fi sed -i .bak "s/GVFS/$NEWNAME/g" "$file" sed -i .bak "s/VFS For Git/$NEWNAME/g" "$file" sed -i .bak "s/VFS for Git/$NEWNAME/g" "$file" sed -i .bak "s/VFSForGit/$NEWNAME/g" "$file" sed -i .bak "s/vfsforgit/$LOWERNAME/g" "$file" sed -i .bak "s/VFS/$NEWNAME/g" "$file" sed -i .bak "s/gvfs/$LOWERNAME/g" "$file" done git commit -a -s -m "[REPLACE] Replace old name in all files" -m "This will change many files, and likely not build" git clean -xdf ``` Signed-off-by: Derrick Stolee <[email protected]>
1 parent fb3a2a3 commit 90e8c1b

File tree

532 files changed

+4420
-4420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

532 files changed

+4420
-4420
lines changed

‎.azure-pipelines/templates/macos-build-and-unit-test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ steps:
1212
certSecureFile: 'PrjFSKextCertExpiresJun6_2020_v2.p12'
1313
certPwd: '$(kext.certificate.password)'
1414

15-
- script: Scripts/Mac/BuildGVFSForMac.sh $(configuration)
16-
displayName: Build VFSForGit ($(configuration))
15+
- script: Scripts/Mac/BuildScalarForMac.sh $(configuration)
16+
displayName: Build Scalar ($(configuration))
1717

1818
- task: PublishTestResults@2
1919
displayName: Publish test results

‎.azure-pipelines/templates/windows-build-and-unit-test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ steps:
99
& 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\sn.exe' -Vr *,31bf3856ad364e35
1010
displayName: Disable strong name validation for MS delay-signed assemblies
1111
12-
- script: $(Build.Repository.LocalPath)\Scripts\BuildGVFSForWindows.bat $(configuration) $(majorAndMinorVersion).$(revision)
13-
displayName: Run VFSForGit build script ($(configuration))
12+
- script: $(Build.Repository.LocalPath)\Scripts\BuildScalarForWindows.bat $(configuration) $(majorAndMinorVersion).$(revision)
13+
displayName: Run Scalar build script ($(configuration))
1414

1515
- script: $(Build.Repository.LocalPath)\Scripts\RunUnitTests.bat $(configuration)
1616
displayName: Run unit tests

‎.azure-pipelines/templates/windows-functional-test.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ steps:
88
artifactName: FunctionalTests_$(platformFriendlyName)_$(configuration)
99
downloadPath: $(Build.BinariesDirectory)
1010

11-
- script: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/ReinstallGVFS.bat $(configuration)
12-
displayName: Run VFSForGit and G4W installers
11+
- script: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/ReinstallScalar.bat $(configuration)
12+
displayName: Run Scalar and G4W installers
1313

1414
- script: git config --global credential.interactive never
1515
displayName: Disable interactive auth
1616

17-
- script: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/RunFunctionalTests.bat $(configuration) --test-gvfs-on-path
17+
- script: $(Build.BinariesDirectory)/FunctionalTests_$(platformFriendlyName)_$(configuration)/src/Scripts/RunFunctionalTests.bat $(configuration) --test-scalar-on-path
1818
displayName: Run functional tests
1919

2020
- task: PublishTestResults@2

‎.gitattributes‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
###############################################################################
22
# Do not normalize any line endings.
33
###############################################################################
4-
* -text
4+
* -text

‎.vsconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"Microsoft.Net.Component.4.6.1.TargetingPack",
1111
"Microsoft.Net.Component.4.6.1.SDK",
1212
]
13-
}
13+
}

‎AuthoringTests.md‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,37 @@
44

55
#### Runnable functional test projects
66

7-
- `GVFS.FunctionalTests`
8-
- `GVFS.FunctionalTests.Windows`
7+
- `Scalar.FunctionalTests`
8+
- `Scalar.FunctionalTests.Windows`
99

10-
`GVFS.FunctionalTests` is a .NET Core project and contains all cross-platform functional tests. `GVFS.FunctionalTests.Windows`, contains functional tests that require Windows. Additionally, `GVFS.FunctionalTests.Windows` includes all the `GVFS.FunctionalTests` allowing it to run both cross-platform and Windows-specific functional tests.
10+
`Scalar.FunctionalTests` is a .NET Core project and contains all cross-platform functional tests. `Scalar.FunctionalTests.Windows`, contains functional tests that require Windows. Additionally, `Scalar.FunctionalTests.Windows` includes all the `Scalar.FunctionalTests` allowing it to run both cross-platform and Windows-specific functional tests.
1111

1212
#### Other functional test projects
1313

14-
*GVFS.NativeTests*
14+
*Scalar.NativeTests*
1515

16-
`GVFS.NativeTests` contains tests written in C++ that use the Windows API directly. These tests are called from the managed tests (see above) using PInvoke.
16+
`Scalar.NativeTests` contains tests written in C++ that use the Windows API directly. These tests are called from the managed tests (see above) using PInvoke.
1717

18-
*GVFS.FunctionalTests.LockHolder*
18+
*Scalar.FunctionalTests.LockHolder*
1919

20-
The `LockHolder` is a small program that allows the functional tests to request and release the `GVFSLock`. `LockHolder` is useful for simulating different timing/race conditions.
20+
The `LockHolder` is a small program that allows the functional tests to request and release the `ScalarLock`. `LockHolder` is useful for simulating different timing/race conditions.
2121

2222
## Running the Functional Tests
2323

2424
The functional tests are built on NUnit 3, which is available as a set of NuGet packages.
2525

2626
### Windows
2727

28-
1. Build VFS for Git:
28+
1. Build Scalar:
2929

30-
**Option 1:** Open GVFS.sln in Visual Studio and build everything.
30+
**Option 1:** Open Scalar.sln in Visual Studio and build everything.
3131

32-
**Option 2:** Run `Scripts\BuildGVFSForWindows.bat` from the command line
32+
**Option 2:** Run `Scripts\BuildScalarForWindows.bat` from the command line
3333

34-
2. Run the VFS4G installer that was built in step 2. This will ensure that VFS4G will be able to find the correct version of the pre/post-command hooks. The installer will be placed in `BuildOutput\GVFS.Installer.Windows\bin\x64\<Debug or Release>`
34+
2. Run the Scalar4G installer that was built in step 2. This will ensure that Scalar4G will be able to find the correct version of the pre/post-command hooks. The installer will be placed in `BuildOutput\Scalar.Installer.Windows\bin\x64\<Debug or Release>`
3535
3. Run the tests **with elevation**. Elevation is required because the functional tests create and delete a test service.
3636

37-
**Option 1:** Run the `GVFS.FunctionalTests.Windows` project from inside Visual Studio launched as Administrator.
37+
**Option 1:** Run the `Scalar.FunctionalTests.Windows` project from inside Visual Studio launched as Administrator.
3838

3939
**Option 2:** Run `Scripts\RunFunctionalTests.bat` from CMD launched as Administrator.
4040

@@ -50,23 +50,23 @@ By default, the functional tests run a subset of tests as a quick smoke test for
5050

5151
### Mac
5252

53-
1. Build VFS for Git: `Scripts/Mac/BuildGVFSForMac.sh`
53+
1. Build Scalar: `Scripts/Mac/BuildScalarForMac.sh`
5454
2. Run the tests: `Scripts/Mac/RunFunctionalTests.sh `
5555

5656
If you need the VS for Mac debugger attached for a functional test run:
5757

5858
1. Make sure you've built your latest changes
59-
2. Open GVFS.sln in VS for Mac
59+
2. Open Scalar.sln in VS for Mac
6060
3. Run->Run With->Custom Configuration...
61-
4. Select "Start external program" and specify the published functional test binary (e.g. `/Users/<USERNAME>/Repos/VFSForGit/Publish/GVFS.FunctionalTests`)
61+
4. Select "Start external program" and specify the published functional test binary (e.g. `/Users/<USERNAME>/Repos/Scalar/Publish/Scalar.FunctionalTests`)
6262
5. Specify any desired arguments (e.g. [a specific test](#Running-Specific-Tests) )
6363
6. Run Action -> "Debug - .Net Core Debugger"
6464
7. Click "Debug"
6565

6666
### Customizing the Functional Test Settings
6767

6868
The functional tests take a set of parameters that indicate what paths and URLs to work with. If you want to customize those settings, they
69-
can be found in [`GVFS.FunctionalTests\Settings.cs`](/GVFS/GVFS.FunctionalTests/Settings.cs).
69+
can be found in [`Scalar.FunctionalTests\Settings.cs`](/Scalar/Scalar.FunctionalTests/Settings.cs).
7070

7171

7272
## Running Specific Tests
@@ -79,20 +79,20 @@ Note that the test name must include the class and namespace and that `Debug` or
7979

8080
Windows (Script):
8181

82-
`Scripts\RunFunctionalTests.bat Debug --test=GVFS.FunctionalTests.Tests.EnlistmentPerFixture.GitFilesTests.CreateFileTest`
82+
`Scripts\RunFunctionalTests.bat Debug --test=Scalar.FunctionalTests.Tests.EnlistmentPerFixture.GitFilesTests.CreateFileTest`
8383

8484
Windows (Visual Studio):
8585

86-
1. Set `GVFS.FunctionalTests.Windows` as StartUp project
87-
2. Project Properties->Debug->Start options->Command line arguments (all on a single line): `--test=GVFS.FunctionalTests.Tests.EnlistmentPerFixture.GitFilesTests.CreateFileTest`
86+
1. Set `Scalar.FunctionalTests.Windows` as StartUp project
87+
2. Project Properties->Debug->Start options->Command line arguments (all on a single line): `--test=Scalar.FunctionalTests.Tests.EnlistmentPerFixture.GitFilesTests.CreateFileTest`
8888

8989
Mac:
9090

91-
`Scripts/Mac/RunFunctionalTests.sh Debug --test=GVFS.FunctionalTests.Tests.EnlistmentPerFixture.GitFilesTests.CreateFileTest`
91+
`Scripts/Mac/RunFunctionalTests.sh Debug --test=Scalar.FunctionalTests.Tests.EnlistmentPerFixture.GitFilesTests.CreateFileTest`
9292

9393
## How to Write a Functional Test
9494

95-
Each piece of functionality that we add to VFS for Git should have corresponding functional tests that clone a repo, mount the filesystem, and use existing tools and filesystem
95+
Each piece of functionality that we add to Scalar should have corresponding functional tests that clone a repo, mount the filesystem, and use existing tools and filesystem
9696
APIs to interact with the virtual repo.
9797

9898
Since these are functional tests that can potentially modify the state of files on disk, you need to be careful to make sure each test can run in a clean
@@ -101,12 +101,12 @@ as the base class, because NUnit treats namespaces like test suites, and we have
101101

102102
1. `TestsWithLongRunningEnlistment`
103103

104-
Before any test in this namespace is executed, we create a single enlistment and mount VFS for Git. We then run all tests in this namespace that derive
104+
Before any test in this namespace is executed, we create a single enlistment and mount Scalar. We then run all tests in this namespace that derive
105105
from this base class. Only put tests in here that are purely readonly and will leave the repo in a good state for future tests.
106106

107107
2. `TestsWithEnlistmentPerFixture`
108108

109-
For any test fixture (a fixture is the same as a class in NUnit) that derives from this class, we create an enlistment and mount VFS for Git before running
109+
For any test fixture (a fixture is the same as a class in NUnit) that derives from this class, we create an enlistment and mount Scalar before running
110110
any of the tests in the fixture, and then we unmount and delete the enlistment after all tests are done (but before any other fixture runs). If you need
111111
to write a sequence of tests that manipulate the same repo, this is the right base class.
112112

0 commit comments

Comments
 (0)